package com.yanqu.road.entity.log.stronghold;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;

@FieldTypeAnnotation(tableName = "t_l_ck_stronghold_power", desc = "商会据点战野外体力变更", autoSave = true, uploadCk = true)
public class LogStrongholdPower extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "用户id", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "消耗的体力数量")
    private int power;
    @FieldTypeAnnotation(desc = "消耗方式 1搜索 2移动")
    private int way;

    public LogStrongholdPower(int activityId, long userId, int power, int way) {
        this.activityId = activityId;
        this.userId = userId;
        this.power = power;
        this.way = way;
    }

    public long getUserId() {
        return userId;
    }
}
